package com.zny.sescore.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zny.sescore.model.AssessModel;
import com.zny.sescore.model.CodeName;
import com.zny.sescore.model.vo.AssessModelListVO;
import com.zny.sescore.model.vo.AssessModelVO;

import java.util.List;

/**
 * 疾病评估模型service
 */
public interface AssessModelService extends IService<AssessModel> {

    AssessModelVO getAssessModelVO(int modelId);

    boolean saveAssessModel(AssessModelVO model);

    List<CodeName> getSourceCategory1(String itemSource);

    List<CodeName> getSourceCategory2(String itemSource, String parentCode);

    IPage<AssessModelListVO> getModelPage(Page<AssessModel> page, QueryWrapper<AssessModel> assessModelQueryWrapper);
}
